package main

import (
	"fmt"
	"main/utils"
	"math/rand"
)

var era = "AD"

func main() {

	for year := 2018; year < 2018+10; year++ {
		isLeap := utils.IsLeap(year)
		month := rand.Intn(12) + 1
		daysInMonth := 31
		switch month {
		case 2:
			if isLeap {
				daysInMonth = 29
			} else {
				daysInMonth = 28
			}
		case 4, 6, 9, 11:
			daysInMonth = 30
		}

		day := rand.Intn(daysInMonth) + 1
		fmt.Println(era, year, month, day, isLeap)

	}
}
